﻿<basics:ChildWindow 
            xmlns:inputToolkit1="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"  
            xmlns:inputToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input"
            xmlns:Toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
        	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" 
            xmlns:basics="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" 
            xmlns:src="clr-namespace:ibba.src.norisk"
	        xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows" 
            xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" 
            x:Class="ibba.src.norisk.PageGarantiaContratoImpExcel"
	        HorizontalAlignment="Center" 
	        VerticalAlignment="Center" 
			Height="380" Width="500" 
			Title="Importar"
			Background="#FF5C7590">

    <Toolkit:BusyIndicator x:Name="activity">
        
        <Grid x:Name="LayoutRoot" 
              Background="{x:Null}"  
              Height="350" 
              VerticalAlignment="Top" 
              HorizontalAlignment="Left" 
              Width="480" 
              Margin="0,-23,0,0">

            <Border Margin="2,55,0,124" 
                    Opacity="0.2" 
                    Background="#FFC3E9F4" 
                    HorizontalAlignment="Left" 
                    Width="480"/>

            <TextBlock x:Name="txbSubTitulo" 
                       Text="Selecionar abaixo as informações que deseja importar" 
                       FontSize="10" 
                       Foreground="#FFF2ECDA" 
                       Margin="6,35,0,0" 
                       VerticalAlignment="Top" 
                       Width="auto" 
                       HorizontalAlignment="Center" 
                       FontFamily="Verdana" 
                       d:LayoutOverrides="VerticalAlignment, Width"/>
            
            <Grid Height="115" 
                  HorizontalAlignment="Left" 
                  Margin="2,55,0,0" 
                  VerticalAlignment="Top" 
                  Width="470">
                
                <Border Background="#FF9AACB7" 
                        CornerRadius="10" 
                        Height="113" 
                        Margin="5,0,0,2" 
                        VerticalAlignment="Bottom" 
                        HorizontalAlignment="Left" 
                        Width="466">
                    
                    <TextBlock Height="25" 
                               Margin="80,17,80,0" 
                               VerticalAlignment="Top" 
                               Text="Importar Parâmetro de Garantia:" 
                               TextWrapping="Wrap" 
                               Foreground="#FFF2ECDA" 
                               FontSize="12" 
                               FontWeight="Bold" 
                               d:LayoutOverrides="Width"/>
                </Border>
                
                <TextBlock x:Name="tbParametro" 
                           Text="Parâmetro" 
                           FontSize="10" 
                           Foreground="#FFF2ECDA" 
                           Width="57" 
                           FontFamily="Verdana" 
                           Margin="74,70,0,0" 
                           TextWrapping="Wrap" 
                           HorizontalAlignment="Left" 
                           VerticalAlignment="Top" 
                           Height="17"/>
                
                <ComboBox x:Name="cboParametro"
                          Margin="135,65,0,0" 
                          SelectedItem="{Binding Mode=OneWay, Path=IdTipoParametroGarantia}" 
                          DisplayMemberPath="DsTipoParametroGarantia" 
                          HorizontalAlignment="Left" 
                          Width="260" 
                          Height="22" 
                          VerticalAlignment="Top" SelectionChanged="cboParametro_SelectionChanged" />

            </Grid>

            <Grid Height="130" 
                  HorizontalAlignment="Left" 
                  Margin="4,200,0,0" 
                  VerticalAlignment="Top" 
                  Width="476">
                
                <TextBlock x:Name="tbFormato" 
                           Foreground="#FFF2ECDA" 
                           HorizontalAlignment="Left" 
                           VerticalAlignment="Top" 
                           Text="Formato:" 
                           TextWrapping="Wrap" 
                           Margin="105,-10,0,0"/>
                
                <ComboBox x:Name="cboFormato" 
                          HorizontalAlignment="Left" 
                          VerticalAlignment="Top" 
                          Width="200" 
                          Margin="160,-10,0,0"/>

                <TextBlock x:Name="tbNmeArquivo" 
                           Foreground="#FFF2ECDA" 
                           HorizontalAlignment="Left" 
                           VerticalAlignment="Top" 
                           TextWrapping="Wrap" 
                           Margin="8,45,0,0"/>
                
                <TextBox x:Name="txtNomeArquivo" 
                         HorizontalAlignment="Left" 
                         VerticalAlignment="Top" 
                         TextWrapping="Wrap" 
                         Margin="8,50,0,0" 
                         Width="403"/>

                <TextBlock x:Name="tbCaminho" 
                           HorizontalAlignment="Left" 
                           VerticalAlignment="Top" 
                           Margin="8,95,0,0" 
                           Width="530" 
                           Foreground="#FFF2ECDA" 
                           Visibility="Collapsed"/>
                
                <Button x:Name="btnSelecionarArquivo" 
                        Click="btnSelecionarArquivo_Click" 
                        HorizontalAlignment="Left" 
                        VerticalAlignment="Top" 
                        Width="50" 
                        Margin="415,51,0,0">
                    
                    <StackPanel Orientation="Horizontal">
                        <Image Source="../image/tasks_16x16.png" Height="16" />
                    </StackPanel>
                    
                </Button>
                
            </Grid>

            <Grid Height="40" 
                  Margin="8,0,0,12" 
                  VerticalAlignment="Bottom" 
                  HorizontalAlignment="Left" 
                  Width="400" >

                <Border Background="#FF9AACB7" 
                        CornerRadius="10" 
                        Margin="0,0,-64,0" />

                <Button x:Name="btnImportarArquivo" 
                        Margin="64,8,0,7" 
                        Click="btnImportarArquivo_Click" 
                        TabIndex="14" 
                        HorizontalAlignment="Left" 
                        Width="120" 
                        d:LayoutOverrides="HorizontalAlignment">
                    
                    <StackPanel Orientation="Horizontal">
                        <Image Source="../image/Save.png" Height="16" />
                        <TextBlock Text="Importar" Margin="10,0,0,0"/>
                    </StackPanel>
                    
                </Button>
                
                <Button x:Name="btnFechar" 
                        Click="btnFechar_Click" 
                        TabIndex="18" 
                        Margin="0,8,0,7" 
                        RenderTransformOrigin="0.455,-0.92" 
                        HorizontalAlignment="Right" 
                        Width="120">
                    
                    <StackPanel Orientation="Horizontal">
                        
                        <Image Source="../image/voltar.png" 
                               Height="34" 
                               Width="34" 
                               Margin="0,-18,0,0" 
                               Stretch="Uniform" 
                               VerticalAlignment="Top" 
                               HorizontalAlignment="Left" />
                        
                        <TextBlock Text="Cancelar" Margin="-8,0,0,0"/>
                        
                    </StackPanel>
                    
                </Button>

            </Grid>
            
        </Grid>
        
    </Toolkit:BusyIndicator>
</basics:ChildWindow>
